<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMyUserInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('my_user_info', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id')->index();
            $table->string('name', 50)->default('');
            $table->string('school_name', 60)->default('');
            $table->string('class_name', 200)->default('');
            $table->string('x', 200)->nullable();
            $table->string('sex',10)->nullable();
            $table->integer('p_id')->default(0);
            $table->string('pname', 100)->default('');
            $table->string('tel', 200)->default('');
            $table->string('description', 200)->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('my_user_info');
    }
}
